package top.lywivan.mm.service.imp;

import top.lywivan.mm.dao.UserDao;
import top.lywivan.mm.pojo.User;
import top.lywivan.mm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;


    @Override
    @Transactional(readOnly = true)
    public User queryUserByUsername(String username) {
        return userDao.queryUserByUsername(username);
    }
}
